package com.hdc.hdc.warehouseManage.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 物资
 * @author GJY
 * 人生格言：学以致用终将成功
 * @version 创建时间：2018年4月16日 下午3:36:27 
 *
 */
@Entity
@Table(name="goods_trade")
public class GoodsTrade implements Serializable{

	private static final long serialVersionUID = -8126934771499818545L;
	
	@Id
	@Column(name="id")
	@GeneratedValue(generator="uuid")
	@GenericGenerator(name="uuid",strategy="org.hibernate.id.UUIDGenerator")
	private String id;
	
	@Column(name="entry_date")
	private Date entryDate;
	
	@Column(name="update_date")
	private Date updateDate;
	
	@Column(name="house_id")
	private String houseId;
	
	@Column(name="house_name")
	private String houseName;
	
	@Column(name="position_id")
	private String positionId;
	
	@Column(name="position_name")
	private String positionName;
	
	@Column(name="goods_barcode")
	private String goodsBarCode;
	
	@Column(name="goods_name")
	private String goodsName;
	
	@Column(name="goods_desc")
	private String goodsDesc;
	
	@Column(name="goods_unit")
	private String goodsUnit;
	
	@Column(name="goods_price")
	private String goodsPrice;
	
	@Column(name="goods_num")
	private Long goodsNum;
	
	@Column(name="lock_goods_num")
	private Long lockGoodsNum;
	
	@Column(name="goods_sku")
	private String goodsSku;
	
	@Column(name="goods_type")
	private String goodsType;
	
	@Column(name="goods_location_id")
	private String locationId;
	
	@Column(name="goods_location_name")
	private String locationName;
	
	@Column(name="warning_value")
	private Long warningValue;
	
	/*
	 * 生产日期
	 */
	@Column(name="goods_produce_date")
	private Date goodsProduceDate;
	
	/*
	 * 保证期
	 */
	@Column(name="goods_period")
	private Integer goodsPeriod;
	
	/*
	 * 供应商
	 */
	@Column(name="goods_supplier")
	private String supplier;
	
	@Column(name="goods_supplier_name")
	private String supplierName;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setEntryDate(Date entryDate) {
		this.entryDate = entryDate;
	}
	
	public Date getEntryDate() {
		return entryDate;
	}

	public String getHouseId() {
		return houseId;
	}

	public void setHouseId(String houseId) {
		this.houseId = houseId;
	}

	public String getHouseName() {
		return houseName;
	}

	public void setHouseName(String houseName) {
		this.houseName = houseName;
	}

	public String getPositionId() {
		return positionId;
	}

	public void setPositionId(String positionId) {
		this.positionId = positionId;
	}

	public String getPositionName() {
		return positionName;
	}

	public void setPositionName(String positionName) {
		this.positionName = positionName;
	}

	public String getGoodsBarCode() {
		return goodsBarCode;
	}

	public void setGoodsBarCode(String goodsBarCode) {
		this.goodsBarCode = goodsBarCode;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getGoodsDesc() {
		return goodsDesc;
	}

	public void setGoodsDesc(String goodsDesc) {
		this.goodsDesc = goodsDesc;
	}

	public String getGoodsUnit() {
		return goodsUnit;
	}

	public void setGoodsUnit(String goodsUnit) {
		this.goodsUnit = goodsUnit;
	}

	public String getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(String goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	
	public Date getUpdateDate() {
		return updateDate;
	}

	public Long getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(Long goodsNum) {
		this.goodsNum = goodsNum;
	}
	
	public String getLocationId() {
		return locationId;
	}

	public void setLocationId(String locationId) {
		this.locationId = locationId;
	}

	public String getLocationName() {
		return locationName;
	}

	public void setLocationName(String locationName) {
		this.locationName = locationName;
	}

	public String getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(String goodsType) {
		this.goodsType = goodsType;
	}

	public Long getWarningValue() {
		return warningValue;
	}

	public void setWarningValue(Long warningValue) {
		this.warningValue = warningValue;
	}

	public String getGoodsSku() {
		return goodsSku;
	}

	public void setGoodsSku(String goodsSku) {
		this.goodsSku = goodsSku;
	}

	public Date getGoodsProduceDate() {
		return goodsProduceDate;
	}

	public void setGoodsProduceDate(Date goodsProduceDate) {
		this.goodsProduceDate = goodsProduceDate;
	}

	public Integer getGoodsPeriod() {
		return goodsPeriod;
	}

	public void setGoodsPeriod(Integer goodsPeriod) {
		this.goodsPeriod = goodsPeriod;
	}

	public String getSupplier() {
		return supplier;
	}

	public void setSupplier(String supplier) {
		this.supplier = supplier;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public Long getLockGoodsNum() {
		return lockGoodsNum;
	}

	public void setLockGoodsNum(Long lockGoodsNum) {
		this.lockGoodsNum = lockGoodsNum;
	}
	
	
}
